.class Lcom/netease/newsreader/activity/NewsReader$25;
.super Ljava/lang/Thread;
.source "NewsReader.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/NewsReader;->UpdateDisplay()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/NewsReader;

.field private final synthetic val$start:I


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/NewsReader;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iput p2, p0, Lcom/netease/newsreader/activity/NewsReader$25;->val$start:I

    .line 1098
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 14

    .prologue
    .line 1100
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v8}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getDefaultColumns(Landroid/content/Context;)Ljava/util/ArrayList;

    move-result-object v8

    invoke-static {v7, v8}, Lcom/netease/newsreader/activity/NewsReader;->access$144(Lcom/netease/newsreader/activity/NewsReader;Ljava/util/List;)V

    .line 1102
    :try_start_0
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$145(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    if-eqz v7, :cond_0

    .line 1103
    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$145(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    const/4 v9, 0x0

    invoke-interface {v7, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/HashMap;

    const-string v9, "tid"

    invoke-virtual {v7, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v8, v7}, Lcom/netease/newsreader/activity/NewsReader;->access$15(Lcom/netease/newsreader/activity/NewsReader;Ljava/lang/String;)V

    .line 1104
    :cond_0
    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$145(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    const/4 v9, 0x0

    invoke-interface {v7, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/HashMap;

    const-string v9, "tname"

    invoke-virtual {v7, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v8, v7}, Lcom/netease/newsreader/activity/NewsReader;->access$10(Lcom/netease/newsreader/activity/NewsReader;Ljava/lang/String;)V

    .line 1105
    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$145(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    const/4 v9, 0x0

    invoke-interface {v7, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/HashMap;

    const-string v9, "tid"

    invoke-virtual {v7, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v8, v7}, Lcom/netease/newsreader/activity/NewsReader;->access$11(Lcom/netease/newsreader/activity/NewsReader;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1110
    :goto_0
    const/4 v3, 0x0

    .local v3, k:I
    :goto_1
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$145(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    if-lt v3, v7, :cond_3

    .line 1119
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$145(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    if-nez v7, :cond_1

    .line 1120
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$146(Lcom/netease/newsreader/activity/NewsReader;)V

    .line 1121
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$147(Lcom/netease/newsreader/activity/NewsReader;)V

    .line 1123
    :cond_1
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$31(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v8

    monitor-enter v8

    .line 1124
    :try_start_1
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$31(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/List;->clear()V

    .line 1125
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$31(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    iget-object v9, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    const-string v10, "http://c.3g.163.com/nc/article/headline/"

    iget-object v11, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v11}, Lcom/netease/newsreader/activity/NewsReader;->access$148(Lcom/netease/newsreader/activity/NewsReader;)Ljava/lang/String;

    move-result-object v11

    iget v12, p0, Lcom/netease/newsreader/activity/NewsReader$25;->val$start:I

    const/16 v13, 0x14

    invoke-static {v9, v10, v11, v12, v13}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getHeadlineArticleList(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;II)Ljava/util/List;

    move-result-object v9

    invoke-interface {v7, v9}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 1128
    const/4 v7, 0x0

    iget-object v9, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v9}, Lcom/netease/newsreader/activity/NewsReader;->access$143(Lcom/netease/newsreader/activity/NewsReader;)I

    move-result v9

    iget-object v10, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7, v9, v10}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getHeadAdvertismentStr(IILandroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 1129
    .local v0, advertismentString:Ljava/lang/String;
    if-eqz v0, :cond_2

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v7

    if-lez v7, :cond_2

    .line 1130
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$4(Lcom/netease/newsreader/activity/NewsReader;)Landroid/content/SharedPreferences;

    move-result-object v7

    invoke-interface {v7}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v7

    const-string v9, "advertisment_json_string"

    invoke-interface {v7, v9, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v7

    invoke-interface {v7}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1133
    :cond_2
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$23(Lcom/netease/newsreader/activity/NewsReader;)Landroid/os/Handler;

    move-result-object v7

    invoke-virtual {v7}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v4

    .line 1134
    .local v4, msg:Landroid/os/Message;
    const/4 v7, 0x0

    iput v7, v4, Landroid/os/Message;->what:I

    .line 1135
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$14(Lcom/netease/newsreader/activity/NewsReader;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v4, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1136
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$23(Lcom/netease/newsreader/activity/NewsReader;)Landroid/os/Handler;

    move-result-object v7

    invoke-virtual {v7, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1123
    monitor-exit v8
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 1138
    return-void

    .line 1106
    .end local v0           #advertismentString:Ljava/lang/String;
    .end local v3           #k:I
    .end local v4           #msg:Landroid/os/Message;
    :catch_0
    move-exception v2

    .line 1108
    .local v2, e:Ljava/lang/Exception;
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_0

    .line 1111
    .end local v2           #e:Ljava/lang/Exception;
    .restart local v3       #k:I
    :cond_3
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$145(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/HashMap;

    const-string v8, "tname"

    invoke-virtual {v7, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    .line 1112
    .local v6, tname:Ljava/lang/String;
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$145(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/HashMap;

    const-string v8, "tid"

    invoke-virtual {v7, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    .line 1113
    .local v5, tid:Ljava/lang/String;
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$145(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/HashMap;

    const-string v8, "cid"

    invoke-virtual {v7, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    .line 1114
    .local v1, cid:Ljava/lang/String;
    const/4 v7, 0x5

    if-ge v3, v7, :cond_4

    .line 1115
    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$140(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v8

    iget-object v7, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v7}, Lcom/netease/newsreader/activity/NewsReader;->access$145(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/HashMap;

    invoke-interface {v8, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 1116
    const-string v7, "top_columns"

    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v8, v8, Lcom/netease/newsreader/activity/NewsReader;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-static {v7, v8, v6, v5, v1}, Lcom/netease/newsreader/util/Tools;->insertDataToDB(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 1110
    :goto_2
    add-int/lit8 v3, v3, 0x1

    goto/16 :goto_1

    .line 1117
    :cond_4
    const-string v7, "more_columns"

    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$25;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v8, v8, Lcom/netease/newsreader/activity/NewsReader;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-static {v7, v8, v6, v5, v1}, Lcom/netease/newsreader/util/Tools;->insertDataToDB(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 1123
    .end local v1           #cid:Ljava/lang/String;
    .end local v5           #tid:Ljava/lang/String;
    .end local v6           #tname:Ljava/lang/String;
    :catchall_0
    move-exception v7

    :try_start_2
    monitor-exit v8
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    throw v7
.end method
